package com.handycraftz.site.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class HandyCraftzEvent extends GwtEvent<HandyCraftzEventHandler> {

	public static Type<HandyCraftzEventHandler> TYPE = new Type<HandyCraftzEventHandler>();

	private String token = null;

	public HandyCraftzEvent() {
	}

	public HandyCraftzEvent(String token) {
		this.token = token;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<HandyCraftzEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(HandyCraftzEventHandler handler) {
		handler.onFired(this);
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

}
